package com.hm.beanlife;

import java.util.Date;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Main {

	@Bean
	public Date Date() {
		return new Date();
	}
	
	@Bean
	public BeanLife beanLife() {
		return new BeanLife();
	}
	
//	@SuppressWarnings("resource")
	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = 
				new AnnotationConfigApplicationContext(Main.class);
		
	//	context.close();
	}

}
